# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=bugsquish
pkgver=0.0.6
pkgrel=1
pkgdesc="Defend your arm from an onslaught of blood-sucking insects"
url="http://www.newbreedsoftware.com/bugsquish/"
arch="all"
license="GPL-2.0-only"
depends="libmikmod"
makedepends="sdl12-compat-dev sdl_image-dev sdl_mixer-dev"
options="!check" # No testsuite
source="https://github.com/antonialoytorrens/nbs/raw/master/unix/x/bugsquish/src/bugsquish-$pkgver.tar.gz
	bugsquish-icon.xpm
	bugsquish.desktop
	"

build() {
	make
}

package() {
	make install \
		DATA_PREFIX="$pkgdir"/usr/share/bugsquish \
		BIN_PREFIX="$pkgdir"/usr/bin
	install -Dm644 "$srcdir"/bugsquish-icon.xpm \
	"$pkgdir"/usr/share/pixmaps/bugsquish-icon.xpm
	install -Dm664 "$srcdir"/bugsquish.desktop \
	"$pkgdir"/usr/share/applications/bugsquish.desktop
}

sha512sums="
429c80e2263b916e234353324edc31cf828562907aa0460ae0083450e9c9e0bde2d5b1f7bf06650d8947c8c0bc0820a3a062a8571ecdbb715da206ff61b235cf  bugsquish-0.0.6.tar.gz
954bf14256612ca528f4f0659fac040ff223fbfbdd0b03054d638cdd2c8d3967fa9dd5818182a3407eb74e5c80d48bffa7cc1277fd4400c9679ee2f7c3012e30  bugsquish-icon.xpm
8d5db88f9d1308989aa89c5620fa99328d12daa4d110cb532609af9fe7fc27d8d41fd347961344a763d2249b22b37b310582725f17e5bcef071193064c801e0f  bugsquish.desktop
"
